<?php

declare(strict_types=1);

namespace App\CustHub\Request;

use Mine\MineFormRequest;

class ContactRequest extends MineFormRequest
{

    public function addToBlacklistRules(): array
    {
        return [
            'id' => 'required',
        ];
    }

    public function getInfoRules(): array
    {
        return [
            'id' => 'required',
        ];
    }

    public function behaviorLogRules(): array
    {
        return [
            'id' => 'required',
        ];
    }

    public function getUserRoomsRules(): array
    {
        return [
            'user_id' => 'required',
            'is_out' => 'required|in:0,1'
        ];
    }

    public function editRemarkRules(): array
    {
        return [
            'id' => 'required',
            'remark' => 'required|max:20'
        ];
    }

    public function editMobileRules(): array
    {
        return [
            'id' => 'required',
            'mobile' => 'required'
        ];
    }

    public function editDescRules(): array
    {
        return [
            'id' => 'required',
            'desc' => 'required|max:150'
        ];
    }

    public function editCompanyRemarkRules(): array
    {
        return [
            'id' => 'required',
            'company_remark' => 'required|max:150'
        ];
    }

    public function editCallNameRules(): array
    {
        return [
            'id' => 'required',
            'call_name' => 'required|max:20'
        ];
    }

    public function setCorpTagRules(): array
    {
        return [
            'id' => 'required',
            'corp_tag_ids' => 'required',
        ];
    }

    public function batchSetCorpTagRules()
    {
        return [
            'ids' => 'required',
            'corp_tag_ids' => 'required',
        ];
    }

    public function batchRemoveCorpTagRules()
    {
        return [
            'ids' => 'required',
            'corp_tag_ids' => 'required',
        ];
    }

    public function setPersonalTagRules(): array
    {
        return [
            'id' => 'required',
            'personal_tag_ids' => 'required',
        ];
    }

    public function setSmartTagRules(): array
    {
        return [
            'id' => 'required',
            'smart_tag_ids' => 'required',
            'type' => 'required|in:0,1'
        ];
    }


    public function batchSetSmartTagRules()
    {
        return [
            'ids' => 'required',
            'smart_tag_ids' => 'required',
        ];
    }

    public function batchRemoveSmartTagRules()
    {
        return [
            'ids' => 'required',
            'smart_tag_ids' => 'required',
        ];
    }

    public function  batchEditRemarkRules()
    {
        return [
            'ids' => 'required',
            'type' => 'required|in:0,1',
            'content' => 'required_if:type,0',
            'keyword' => 'required_if:type,1',
            'replace_text' => 'required_if:type,1'
        ];
    }

    public function cancelTaskRules()
    {
        return [
            'id' => 'required'
        ];
    }

    public function deleteRules(): array
    {
        return [
            'id' => 'required',
        ];
    }
}